package xyz.boot.ssm.modules.mybatis.web;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import xyz.boot.ssm.modules.mybatis.service.LogService;

import javax.annotation.Resource;
import java.util.Objects;

@RestController
public class LogController {

    @Resource
    LogService service;

    @RequestMapping("t1")
    public Object t1(){
        int i = 1/0;
        return this.getClass().getName();
    }

    @RequestMapping("t4")
    public Object t4(){
        service.insert4();
        return this.getClass().getName();
    }

    @RequestMapping("t5")
    public Object t5(){
        service.insert5();
        return this.getClass().getName();
    }

    @RequestMapping("t6")
    public Object t6(){
        service.insert6();
        return this.getClass().getName();
    }
}
